package com.mornd.gulimall.apis.search;

import com.mornd.gulimall.apis.search.to.SkuEsModel;
import com.mornd.gulimall.common.core.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/8/9 - 17:47
 */

@FeignClient(value = "gulimall-search")
public interface ISearchClient {

    @PostMapping("/search/product/up")
    R<Boolean> productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
